import Movies from "../pages/movies/moviesList.js";
import AddMovies from "../pages/movies/movieAdd.js";
import upDateMovies from "../pages/movies/movieEdit.js"
import movieDetails from "../pages/movies/movieDetails.js"

export default {

    //电影列表
    "/movies-list": {
        on() {
            new Movies({//电影列表
                el: '#info-content',
            })
        }
    },
    //电影上传
    "/movies-add": {
        on() {
            new AddMovies({
                el: '#info-content',
            })
        }
    },
    //电影修改
    "/movies-edit": {
        on() {
            new upDateMovies({
                el: '#info-content',
            })
        }
    },
    "/movies-details":{
        on(){
            new movieDetails({
                el: '#info-content',
            })
        }
    }

}